<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>基本语法</title>
</head>
<body>
    <div id="app">
        <div>{{message}}</div>
        <div>{{htmlStr}}</div>
        <div v-html="htmlStr"></div>
        <a href="https://www.baidu.com">百度一下</a>
        <a v-bind:href="linkUrl">百度一下</a>
        <div>{{message.split('').reverse().join('')}}</div>
    </div>

    <script src="js/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data() {
                return {
                    message: 'Hello World',
                    htmlStr: '<span style="color: red;">html</span>',
                    linkUrl: 'https://www.baidu.com'
                }
            }
        })
    </script>
</body>
</html>